﻿#ifndef UIPLAYCONTROL_H
#define UIPLAYCONTROL_H

#include "UIModel/UIPlayModel.h"
#include "UIView/UIPlayView.h"
#include <QObject>
#include <QWidget>

class QtPotPlayer;
class UIPlayModel;
class UIPlayView;

class UIPlayControl : public QObject
{
    Q_OBJECT
public:
    explicit UIPlayControl(QWidget *parent = nullptr);
    
    void Play(QPushButton *obj);
    void Stop(QPushButton *obj);
    void Previous();
    void Next();
    void OpenFileDialog();
    void PlayConfig();
    
signals:
    
private:
    QtPotPlayer *MainUI;
    UIPlayModel *playModel;
    UIPlayView  *PlayView;
    
    bool isPlaying;
};

#endif // UIPLAYCONTROL_H
